/**
 * 
 */
package com.youth.fund.hk.hostManager.manager.web.controller;

import java.lang.reflect.Method;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import com.youth.fund.hk.hostManager.manager.service.InitService;

/**
 * @author Sunk_Sky
 *
 * 2014年11月29日下午5:06:01
 */
@Controller
@RequestMapping("/init")
public class InitController
{
	@Autowired
	@Qualifier("InitService")
	private InitService initService;
	
	@RequestMapping(method=RequestMethod.GET)
	public String initHtml(Model model)
	{
		boolean result= initService.initAll();
		
		if(result)
		{
			model.addAttribute("msg", "提交成功");
		}else
		{
			model.addAttribute("msg", "提交失败");
		}
		
		return "redirect:";
	}
	
	public String initHK()
	{
		boolean result = initService.initHK();
		
		return "";
	}
	
	public String initCN()
	{
		boolean result = initService.initCN();
		
		return "";
	}
	
	public String initEN()
	{
		boolean result = initService.initEN();
		
		return "";
	}
}
